home *** CD-ROM | disk | FTP | other *** search
- package engine.dynamicObjects
- {
- import engine.BitmapLibrary;
-
- public class SparkSmall extends DynamicObject
- {
-
-
- public function SparkSmall()
- {
- _bmdArray = BitmapLibrary.Clips.DYN_TinySpark;
- super(_bmdArray[0]);
- _animationMethod = ANIM_METHODS.PlayOnce;
- _frameSpeed = 1;
- _drawMethod = DMETHOD.Fast;
- _objectType = OBJ_TYPES.FX;
- vx = Math.random() * 4 - 2;
- vy = Math.random() * 6 - 4.5;
- r = Math.random() * (2 * Math.PI);
- z = 2.5;
- _currentFrame = 1 + Math.floor(Math.random() * 30);
- }
-
- override public function fStep() : *
- {
- super.fStep();
- vy += 0.2;
- }
- }
- }
-